//app.js
App({
  onLaunch: function () {
      console.log(wx.getSystemInfoSync().windowHeight)
      var tabbar =  [{
          img: "/images/study.png",
          title: "好好学习",
          nav: "/pages/home/list/list"
            },
          {
              img: "/images/home.png",
              title: "首页",
              nav: "/pages/home/home"
            },
          {
              img: "/images/run.png",
              title: "奔跑吧",
              nav: "/pages/home/login/login"
            },
      ];
      
      
    
    if (!wx.cloud) {
      console.error('请使用 2.2.3 或以上的基础库以使用云能力')
    } else {
      wx.cloud.init({
        traceUser: true,
      })
    }

    this.globalData = {
        winH : wx.getSystemInfoSync().windowHeight,
        tabbar: tabbar,
        userInfo: {}
    }
  }
})
